home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / network / lattice / portlib.lzh / PORTLIB / MAKEFILE < prev    next >
Encoding:
Text File  |  1994-12-09  |  826 b   |  38 lines

  1. #
  2. #    Makefile for a small porting library, (w) 1994, Kay Roemer.
  3. #
  4.  
  5. CC = gcc
  6. AR = ar
  7.  
  8. CPPFLAGS = -I. -DMINT -DLOGIN
  9. CFLAGS = -O2 -fomit-frame-pointer
  10.  
  11. ifdef BASEREL
  12. all: bportlib.olb
  13. CFLAGS := $(CFLAGS) -mbaserel -mpcrel
  14. else
  15. all: portlib.olb
  16. endif
  17.  
  18. SRCS = mint.c sigvec.c daemon.c pty.c login_tty.c setenv.c syslog.c \
  19.   initgrp.c chroot.c readv.c writev.c getusershell.c strncasecmp.c itimer.c \
  20.   cfsetspeed.c logout.c logwtmp.c strsep.c strcasecmp.c fcrypt.c ident.c \
  21.   timeofday.c sprintf.c gethostid.c rtent.c iflink.c \
  22.   ioctl.c tcattr.c
  23.  
  24. OBJS = $(patsubst %.c, %.o, $(SRCS))
  25.  
  26. portlib.olb: clean $(patsubst %.o, portlib.olb(%.o), $(OBJS))
  27.     $(AR) s $@
  28.  
  29. bportlib.olb: clean $(patsubst %.o, bportlib.olb(%.o), $(OBJS))
  30.     $(AR) s $@
  31.  
  32. (%): %
  33.     $(AR) r $@ $%
  34.     rm $%
  35.  
  36. clean:
  37.     rm -f $(OBJS)
  38.